package com.dy.lock.screen.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.MessageDao;
import com.dy.lock.screen.pojo.MessageInfo;
@Repository("messageDao")
public class MessageDaoImpl extends BaseDaoImpl<MessageInfo, String> implements MessageDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.MessageMapper";
	}

	@Override
	public List<MessageInfo> queryByCustomerId(String customerId) {
		return this.getSqlSession().selectList(this.getQueryNamespace() + ".queryCustomerMessage",customerId);
	}

}
